//
// Created by interset-wq on 2025/10/26.
//
#pragma once
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <windows.h>
#include <time.h>
#define N 3
#define PLAYER 'O'
#define  PC 'X'

// print menu of the game
void menu(void);

// init the board array
void init_board(char board[N][N]);

void display_board(char board[N][N]);

bool is_valid(char board[N][N], int x, int y);

void player_move(char board[N][N]);
void pc_move(char board[N][N]);

bool is_win(char board[N][N], char mark);

void game(void);

bool is_full(char board[N][N]);